﻿using System.ComponentModel.DataAnnotations;

namespace SingleBlog.Web.Areas.Install.Models
{
    public class DbInitViewModel
    {        
        [Display(Name ="管理帐号")]
        [Required(ErrorMessage = "请输入{0}")]
        public string Account { get; set; }

        [Display(Name = "管理密码")]
        [Required(ErrorMessage = "请输入{0}")]
        [MinLength(6,ErrorMessage ="{0}长度不能少于{1}个字符")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Display(Name = "管理员邮箱")]
        [Required(ErrorMessage = "请输入{0}")]
        [DataType(DataType.EmailAddress,ErrorMessage ="输入格式不正确")]
        public string Email { get; set; }
    }
}
